package com.cms.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.cms.base.HibernateDAOImpl;
import com.cms.entity.Topic;

@Component(value="topicDao")
public class TopicDao extends HibernateDAOImpl<Topic> {
	
	public List<Topic> queryTopics(Topic topic){
		String hql = "select t from Topic t where 1=1 ";
		List<Topic> list = this.getSession()
				.createQuery(hql)
				.list();
		return list;
	}
	
}
